package webEquipeRechercheGwt.client.handler.navigation;

import webEquipeRechercheGwt.client.abstractPanels.TeamPanelAbstract;
import webEquipeRechercheGwt.client.entityCreationPanel.TeamCreationPanel;
import webEquipeRechercheGwt.client.structure.DataShowingPanel;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;

public class ClickHandlerGetTeamCreationLabel implements ClickHandler {

	private DataShowingPanel mainPanel;
	
	public ClickHandlerGetTeamCreationLabel(DataShowingPanel mainPanel) {
		this.mainPanel = mainPanel;
	}


	@Override
	public void onClick(ClickEvent event) {
		TeamPanelAbstract panel = new TeamCreationPanel(mainPanel);
		mainPanel.setCurrentPanel(panel);
	}

}
